package cn.eshore.bnet.bpm.service;

public class JbpmConst {

	//工单状态
	public static final int TASK_STATE_ASSIGNED = 1;   //未完成
	public static final int TASK_STATE_COMPLETED = 2;  //已完成
	
	
	// 需求类型
	public static final String REQUIREMENT_TYPE = "requirementType";
	public static final int REQUIREMENT_TYPE_DEVELOPMENT = 1;            //开发类
	public static final int REQUIREMENT_TYPE_MAINTENANCE = 2;            //维护类（包含非开发类型的其它所有类型）
	
	
	// 参与单位类型
	public static final String ORGANIGER_ORGANIZATION_LEVEL = "organigerOrganizationLevel";	
	public static final int ORGANIZATION_LEVEL_PROVINCE = 1;                  // 省公司	
	public static final int ORGANIZATION_LEVEL_AREA = 2;                      // 各地市	
	public static final int ORGANIZATION_LEVEL_FIRST_HANDLING = 3;   // 第一处理单位	
	public static final int ORGANIZATION_LEVEL_SECOND_HANDLING = 4;  // 第二处理单位
	
	
	//流程参与人员名称
	public static final String ACTOR_ORGANIGER = "organiger";             //需求申请单位   
	public static final String ACTOR_APPROVER = "approver"; 			  //审批人
	public static final String ACTOR_RECEIVER = "receiver";				  //接单人
	public static final String ACTOR_HANDLER = "handler";				  //处理人
	public static final String ACTOR_ASSESSOR = "assessor";				  //审核人
	public static final String ACTOR_INTERFACE = "interface";			  //接口人
	public static final String ACTOR_DESIGNER = "designer";				  //设计人员
	public static final String ACTOR_DEVELOPER = "developer";			  //开发人员
	public static final String ACTOR_TESTER = "tester";					  //测试人员
	public static final String ACTOR_MAINTAINER = "maintainer";			  //维护人员
	
	
	//流程参与人员角色
	public static final int ROLE_OF_PROVINCE_ORGANIGER = 1; //省需求提出者
	public static final int ROLE_OF_AREA_ORGANIGER     = 2; //地市需求提出者
	public static final int ROLE_OF_APPROVER 		   = 3; //审批人
	public static final int ROLE_OF_RECEIVER 		   = 4; //接单人
	public static final int ROLE_OF_HANDLER            = 5; //处理人
	public static final int ROLE_OF_ASSESSOR           = 6; //审核人
	public static final int ROLE_OF_INTERFACE          = 7; //总接口
	public static final int ROLE_OF_DESIGNER           = 8; //设计人员
	public static final int ROLE_OF_DEVELOPER          = 9; //开发人员
	public static final int ROLE_OF_TESTER             = 10;//测试人员
	public static final int ROLE_OF_MAINTAINER         = 11;//维护人员
	
	
	//流程参与人员对应的任务名称
	public static final String TASK_OF_START              = "startTask"; 
	public static final String TASK_OF_ORGANIGER          = "organigerTask"; 
	public static final String TASK_OF_ORGANIGER_COMPLETE = "organigerCompleteTask"; 
	public static final String TASK_OF_APPROVER           = "approverTask"; 
	public static final String TASK_OF_RECEIVER           = "receiverTask";
	public static final String TASK_OF_RECEIVER_COMPLETE  = "receiverCompleteTask";		
	public static final String TASK_OF_HANDLER            = "handlerTask";
	public static final String TASK_OF_ASSESSOR           = "assessorTask";
	public static final String TASK_OF_INTERFACE          = "interfaceTask";
	public static final String TASK_OF_DESIGNER           = "designerTask";
	public static final String TASK_OF_DEVELOPER          = "developerTask";
	public static final String TASK_OF_TESTER             = "testerTask";
	public static final String TASK_OF_MAINTAINER         = "maintainerTask";
	
	
	
	//需求工单流程状态
	public static final int PROCESS_STATE_OF_NOT_APPROVE      = 1;  //未审批
	public static final int PROCESS_STATE_OF_APPROVE_NOT_PASS = 2;  //审批不通过
	public static final int PROCESS_STATE_OF_APPROVE_PASS     = 3;  //审批通过
	public static final int PROCESS_STATE_OF_NOT_ASSESS       = 4;  //未审核
	public static final int PROCESS_STATE_OF_ASSESS_NOT_PASS  = 5;  //审核不通过
	public static final int PROCESS_STATE_OF_ASSESS_PASS      = 6;  //审核通过
	public static final int PROCESS_STATE_OF_NOT_TRANSMIT     = 7;  //未转发
	public static final int PROCESS_STATE_OF_DESIGNING        = 8;  //设计中
	public static final int PROCESS_STATE_OF_DEVELOPING       = 9;  //开发中
	public static final int PROCESS_STATE_OF_TESTING          = 10;  //测试中
	public static final int PROCESS_STATE_OF_HANDLING         = 11; //处理中
	public static final int PROCESS_STATE_OF_COMPLETED        = 12; //已完成
	public static final int PROCESS_STATE_OF_RETURN_BACK      = 13; //回退
	public static final int PROCESS_STATE_OF_ALARM            = 14; //预警
	public static final int PROCESS_STATE_OF_END              = 15; //结单
	
	// 第二处理单位
	public static final String SECOND_HANDLING_ORGANIZATION = "secondHandlingOrganization";
	
	// 是否可以直接处理（处理人员决定）
	public static final String IS_DIRECT_PROCESS = "isDirectProcess";
}
